/**
 * Created by zby on 2018/3/25.
 */
public class Application {
    public static void main(String[] args) {
        Pillar2 pillar;
        Geometry bottom = null;
        pillar = new Pillar2(bottom, 100);
        System.out.println("体积" + pillar.getVolum());
        bottom = new Rectangle(12, 22);
        pillar = new Pillar2(bottom, 58);
        System.out.println("体积" + pillar.getVolum());
        bottom = new Circle2(10);
        pillar = new Pillar2(bottom, 58);
        System.out.println("体积" + pillar.getVolum());
    }
}
